#ifndef COLORWHEELEFFECT_H
#define COLORWHEELEFFECT_H

#include "Effects/RGBEffect.h"

class ColorWheelEffect : public RGBEffect
{

public:
    ColorWheelEffect();
    ~ColorWheelEffect();

    //EFFECT_REGISTERER(ClassName(), CAT_RAINBOW, [](){return new ColorWheelEffect;});

    static std::string const ClassName() {return "ColorWheel";}
    //void DefineExtraOptions(QLayout*) override;
    void StepEffect(ControllerZone* const controller_zone) override;

//private slots:
//    void on_cx_valueChanged(int);
//    void on_cy_valueChanged(int);
//    void on_direction_currentIndexChanged(int);

private:
    //Ui::ColorWheelEffect *ui;
    double progress = 0.f;
    RGBColor GetColor(unsigned int, unsigned int, double, double, bool);

    unsigned int cx_shift = 50;
    unsigned int cy_shift = 50;
    unsigned int direction = 0;
};

#endif // COLORWHEELEFFECT_H
